package cz.proks.easyhelpdesk.api;

import java.util.List;

import cz.proks.easyhelpdesk.api.exception.ApiException;
import cz.proks.easyhelpdesk.api.model.HelpdeskRole;
import cz.proks.easyhelpdesk.api.model.ThreadMember;

public interface ThreadMemberApi extends BaseApi<ThreadMember> {
    ThreadMember getForHelpdeskMemberAndThread(Long helpdeskMemberId, Long threadId) throws ApiException;
    List<ThreadMember> listForHelpdeskMember(Long helpdeskMemberId) throws ApiException;
    
    void setRead(Long id, boolean read) throws ApiException;
    
    void shareForHelpdeskAndThreadAndRole(Long helpdeskId, Long threadId, HelpdeskRole helpdeskRole) throws ApiException;
    void shareForHelpdeskMemberAndRole(Long helpdeskMemberId, HelpdeskRole helpdeskRole) throws ApiException;
}
